package cn.geoportal.benoserver.entity;

import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * IOT表
 * @TableName t_iotinfo
 */
@TableName(value ="t_iotinfo")
@Data
public class IotInfo implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JSONField(ordinal = 0)
    @ApiModelProperty(value = "id", required = false, hidden = true)
    private Integer id;

    /**
     * 名称
     */
    @TableField(value = "name")
    @JSONField(ordinal = 1)
    @ApiModelProperty(value = "name", position = 1)
    private String name;

    /**
     * 编码
     */
    @TableField(value = "code")
    @JSONField(ordinal = 2)
    private String code;

    /**
     * 地址
     */
    @TableField(value = "address")
    @JSONField(ordinal = 3)
    private String address;

    /**
     * 描述
     */
    @TableField(value = "description")
    @JSONField(ordinal = 4)
    private String description;

    /**
     * IOT类型
     */
    @TableField(value = "typeid")
    @JSONField(ordinal = 5)
    private Integer typeid;

    /**
     * IOT类型名称
     * 虚拟
     */
    @ApiModelProperty(value = "typename", hidden = true)
    @JSONField(ordinal = 6)
    @TableField(exist = false)
    @ExcelEntity(name = "typename")
    private String typename;

    /**
     * GLTK地址
     */
    @TableField(value = "gltf_url")
    @JSONField(ordinal = 7)
    private String gltfUrl;

    /**
     * video地址
     */
    @TableField(value = "video_url")
    @JSONField(ordinal = 8)
    private String videoUrl;

    /**
     * 温度
     */
    @TableField(value = "temp")
    @JSONField(ordinal = 9)
    private Float temp;

    /**
     * 湿度
     */
    @TableField(value = "humidity")
    @JSONField(ordinal = 10)
    private Float humidity;

    /**
     * 高度
     */
    @TableField(value = "height")
    @JSONField(ordinal = 11)
    private Float height;

    /**
     * 纬度
     */
    @TableField(value = "lat")
    @JSONField(ordinal = 12)
    private Float lat;

    /**
     * 经度
     */
    @TableField(value = "lng")
    @JSONField(ordinal = 13)
    private Float lng;

    /**
     * 时空位置
     */
    @TableField(exist = false)
    @JSONField(ordinal = 14)
    private String geomStr;

    /**
     * 数据新建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JSONField(ordinal = 15)
    @ApiModelProperty(value = "创建时间", required = false, hidden = true)
    private Date createdat;

    /**
     * 数据更新时间
     */
    @TableField(value = "updatedat", fill = FieldFill.INSERT_UPDATE)
    @JSONField(ordinal = 16)
    @ApiModelProperty(value = "更新时间", required = false, hidden = true)
    private Date updatedat;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}